import request from '@/router/axios';

export const getList = (page, size, params) => {
    return request({
        url: '/order/directStoreOrderDistribution/list',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}
export const getDetail = (distributionId) => {
    return request({
        url: '/order/directStoreOrderDistribution/detail',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            distributionId,
        }
    })
}

export const sendGoods = (row) => {
    return request({
        url: '/order/directStoreOrderDistribution/sendGoods',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            distributionId:row.distributionId,
            ecId:row.ecId,
            shipCode:row.shipCode,
            distributionDesc:row.distributionDesc,
            ecName:row.ecName,
        }
    })
}
export const modifyLogistics = (row) => {
    return request({
        url: 'order/directStoreOrderDistribution/modifyLogistics',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: row
    })
}
export const getOrderFormGoods = (data) => {
    return request({
        url: 'order/orderGoods/list',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: data
    })
}